package com.errol.batchprocessor.payroll.advisor.upload;

import com.renjia.service.module.payroll.advisor.AbstractPayrollAdvisor;
import com.renjia.service.module.payroll.advisorimpl.payload.PayrollUploadBatchPayload;
import org.springframework.lang.NonNull;

/**
 * 发放导入上传阶段扩展
 *
 * @author zhang xiao bin
 * @version v1.0
 * @date 2021/02/09
 * @since v5.0.6
 **/
public interface PayrollUploadPostAdvisor extends AbstractPayrollAdvisor {

    /**
     * 批次和明细表都存储成功后触发
     *
     * @param batchPayload 批次数据
     * @return true 表示执行成功
     */
    boolean doAfterPayrollSavedAtUploadStage(@NonNull PayrollUploadBatchPayload batchPayload);
}
